package com.project.server.domain.operate;

import com.project.common.annotation.Excel;
import com.project.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 运营管理合同对象 t_operate_contract
 *
 * @author project
 * @date 2021-06-29
 */
public class TOperateContract extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 合同ID
     */
    private Long contractId;

    /**
     * 合同编号
     */
    @Excel(name = "合同编号")
    private String contractCode;

    /**
     * 甲方
     */
    @Excel(name = "甲方")
    private String contractJia;

    /**
     * 乙方
     */
    @Excel(name = "乙方")
    private String contractYi;

    /**
     * 附件
     */
    @Excel(name = "附件")
    private String contractEnclosure;

    /**
     * 合同类型
     */
    @Excel(name = "合同类型",readConverterExp = "0=总价合同,1=补偿类合同")
    private String contractType;

    /**
     * 合同分类
     */
    @Excel(name = "合同分类",readConverterExp = "0=买卖合同,1=借款合同,2=租赁合同")
    private String contractBanner;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    //上传的所有文件名
    private String fileList;

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }

    public Long getContractId() {
        return contractId;
    }

    public void setContractCode(String contractCode) {
        this.contractCode = contractCode;
    }

    public String getContractCode() {
        return contractCode;
    }

    public void setContractJia(String contractJia) {
        this.contractJia = contractJia;
    }

    public String getContractJia() {
        return contractJia;
    }

    public void setContractYi(String contractYi) {
        this.contractYi = contractYi;
    }

    public String getContractYi() {
        return contractYi;
    }

    public void setContractEnclosure(String contractEnclosure) {
        this.contractEnclosure = contractEnclosure;
    }

    public String getContractEnclosure() {
        return contractEnclosure;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType;
    }

    public String getContractType() {
        return contractType;
    }

    public void setContractBanner(String contractBanner) {
        this.contractBanner = contractBanner;
    }

    public String getContractBanner() {
        return contractBanner;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getFileList() {
        return fileList;
    }

    public TOperateContract setFileList(String fileList) {
        this.fileList = fileList;
        return this;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("contractId", getContractId())
                .append("contractCode", getContractCode())
                .append("contractJia", getContractJia())
                .append("contractYi", getContractYi())
                .append("contractEnclosure", getContractEnclosure())
                .append("contractType", getContractType())
                .append("contractBanner", getContractBanner())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
